<template>
	<view>
		<view class="contentCla">
			<view class="titleCla">
				{{miaoshuData.titleName}}
			</view>
			<view class="textCla">
				{{miaoshuData.Content}}
			</view>
			<view class="">
				<u--textarea class="textareaCla" maxlength='3000' v-model="value"
					:placeholder="'1.工作内容\n2.任务要求\n3.特别说明'" count height="600"></u--textarea>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				value: '',
			}
		},
		props: {
			miaoshuData:{
				type: Object
			},
			miaoshuShow:{
				type: Boolean,
				default: false
			}
		},
		created() {
			this.value = this.miaoshuData.ContentText;
		},
		watch:{
			miaoshuShow(newVal){
				if(newVal){
					this.chuanshuMet()
				}
			}
		},
		methods: {
			chuanshuMet(){
				this.$emit('toguanjianciData',this.value)
			},
		}
	}
</script>

<style lang="scss" scoped>
	.contentCla {
		background-color: #fff;
		width: 100%;
		height: 100vh;


		.titleCla {
			padding: 60rpx 20rpx 10rpx 20rpx;
			font-size: 48rpx;
			font-weight: bold;
			color: #000000;
		}

		.textCla {
			padding: 0 20rpx 10rpx 20rpx;
			font-weight: 500;
			color: #666666;
			font-size: 28rpx;
		}

		.textareaCla {
			height: 600rpx;
			margin-top: 50rpx;
		}
		/deep/.u-textarea--radius{
			border: none;
		}
	}

	/deep/.u-modal__content__text {
		flex: none;
	}
</style>
